<script lang="ts" setup>
import { provide } from 'vue'

const props = defineProps({
  separator: {
    type: String,
    default: ''
  }
})

// 向子组件提供展示的分隔符
provide('separator', props.separator)
</script>

<script lang="ts">
export default { name: 'XtxBread' }
</script>

<template>
  <div class="xtx-bread">
    <slot />
  </div>
</template>

<style lang="scss" scoped>
.xtx-bread {
  display: flex;
  padding: 25px 10px;
  &-item {
    a {
      color: #666;
      transition: all 0.4s;
      &:hover {
        color: $xtxColor;
      }
    }
  }
  i {
    font-size: 12px;
    margin-left: 5px;
    margin-right: 5px;
    line-height: 22px;
  }
}
</style>
